R = {
	Title: "res/Title.png",
	Background: "res/Background.jpg",
	Button: {
		NewGame: "res/btn/NewGame.png",
		Continue: "res/btn/Continue.png",
		FullScreen: "res/btn/FullScreen.png",
		Exit: "res/btn/Exit.png"
	},
	Blocks: [
		"res/blocks/floor.png",
		"res/blocks/wall.png",
		"res/blocks/block.png",
		"res/blocks/portal.png",
		"res/blocks/button.png",
		"res/blocks/door_closed.png",
		"res/blocks/door_opened.png"
	],
	Letters: [
		"res/letters/wall.png",
		"res/letters/equals.png",
		"res/letters/forbid.png",
		"res/letters/block.png",
		"res/letters/pushable.png",
		"res/letters/portal.png",
		"res/letters/win.png",
		"res/letters/closed_door.png"
	],
	Sounds: {
		Success: "res/sounds/success.ogg"
	},
	Player: "res/Player.png",
	Success: "res/Success.png",
	Failed: "res/Failed.png",
	NextLevel: "res/NextLevel.png"
};
AL = {
	Wall: 0,
	Equals: 1,
	Forbid: 2,
	Block: 3,
	Pushable: 4,
	Portal: 5,
	Win: 6,
	ClosedDoor: 7
};
LetterTypes = [0, 1, 2, 0, 2, 0, 2, 0];
LetterBlocks = [1, -1, -1, 2, -1, 3, -1, 5];
SupportMouse = ("mouse" in cc.sys.capabilities);
LoadResources = [];
ProcessResource = function (obj) {
	let tmp;
	for (let i in obj) {
		tmp = obj[i];
		if (typeof tmp === "string") LoadResources.push(tmp);
		else if (tmp instanceof Object) ProcessResource(tmp);
	}
};
ProcessResource(R);
delete ProcessResource;